package com.axonactive.training.service;

import java.util.List;

import javax.ejb.Stateless;
import javax.inject.Inject;

import com.axonactive.training.dao.CategoryDao;
import com.axonactive.training.model.Category;

@Stateless
public class CategoryService {
	@Inject
	CategoryDao categoryDao;
	
	public Category getCategoryById(Long id){
		return categoryDao.getCategoryById(id);
	}
	
	public void saveCategory(Category category){
		categoryDao.saveCategory(category);
	}
	
	public List<Category> getCategoryList(){
		return categoryDao.getCategoryList();
	}
	
}
